package com.asa.chart;

import java.util.ArrayList;
import java.util.List;

import com.asa.HanShu;
import com.asa.chart.work.AlgoVisualizer;

public class Main2Move {

	
	
	
	

	public static void main(String[] args) throws Exception {
		
		
		final int sceneWidth = 900;
		final int sceneHeight = 900;
		int N = 10;

				
		
		List<double[][]> zhi = new ArrayList<double[][]>();//函数的线簇

		
		HanShu hanShu = new HanShu() {
			
			@Override
			public double hanshu(double t, double x) {
				// TODO Auto-generated method stub
				return x;
			}
			
			@Override
			public double hanshu(double x) {
				// TODO Auto-generated method stub
				if (x>0) {
					return Math.exp(-x);
				}else {
					return Math.exp(x);
				}
				
				
//				return Math.cos(x)+1;
			}
		};
		double[][] hanshupoint = MathPointUtil.hanshupoint(hanShu,-9,6);
		zhi.add(hanshupoint);
		
				
		
		
		AlgoVisualizer algoVisualizer = new AlgoVisualizer(sceneWidth, sceneHeight, N,zhi,50);
		
		
	}
	
	
	
	
	
	
	
}
